import re
re_str='/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/'
str='-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDjb4V7EidX/ym28t2ybo0U6t0n\n6p4ej8VjqKHg100va6jkNbNTrLQqMCQCAYtXMXXp2Fwkk6WR+12N9zknLjf+C9sx\n/+l48mjUU8RqahiFD1XT/u2e0m2EN029OhCgkHx3Fc/KlFSIbak93EH/XlYis0w+\nXl69GV6klzgxW6d2xQIDAQAB\n-----END PUBLIC KEY-----\n'

def parsekey(re_str,str):
    print(str.split('-----BEGIN PUBLIC KEY-----')[1].split("-----END PUBLIC KEY-----")[0])


r=[
    48,
    129,
    159,
    48,
    13,
    6,
    9,
    42,
    134,
    72,
    134,
    247,
    13,
    1,
    1,
    1,
    5,
    0,
    3,
    129,
    141,
    0,
    48,
    129,
    137,
    2,
    129,
    129,
    0,
    227,
    111,
    133,
    123,
    18,
    39,
    87,
    255,
    41,
    182,
    242,
    221,
    178,
    110,
    141,
    20,
    234,
    221,
    39,
    234,
    158,
    30,
    143,
    197,
    99,
    168,
    161,
    224,
    215,
    77,
    47,
    107,
    168,
    228,
    53,
    179,
    83,
    172,
    180,
    42,
    48,
    36,
    2,
    1,
    139,
    87,
    49,
    117,
    233,
    216,
    92,
    36,
    147,
    165,
    145,
    251,
    93,
    141,
    247,
    57,
    39,
    46,
    55,
    254,
    11,
    219,
    49,
    255,
    233,
    120,
    242,
    104,
    212,
    83,
    196,
    106,
    106,
    24,
    133,
    15,
    85,
    211,
    254,
    237,
    158,
    210,
    109,
    132,
    55,
    77,
    189,
    58,
    16,
    160,
    144,
    124,
    119,
    21,
    207,
    202,
    148,
    84,
    136,
    109,
    169,
    61,
    220,
    65,
    255,
    94,
    86,
    34,
    179,
    76,
    62,
    94,
    94,
    189,
    25,
    94,
    164,
    151,
    56,
    49,
    91,
    167,
    118,
    197,
    2,
    3,
    1,
    0,
    1
]
s={
    "default_key_size": 1024,
    "default_public_exponent": "010001",
    "log": false,
    "key": {
        "n": {
            "0": 195524293,
            "1": 158565141,
            "2": 219766436,
            "3": 65398251,
            "4": 102937420,
            "5": 69203429,
            "6": 229195228,
            "7": 155535494,
            "8": 118869962,
            "9": 168363975,
            "10": 230504976,
            "11": 114836340,
            "12": 250453714,
            "13": 16080191,
            "14": 174725253,
            "15": 222641222,
            "16": 158921320,
            "17": 229842942,
            "18": 238550539,
            "19": 259232370,
            "20": 33250701,
            "21": 38353497,
            "22": 99211356,
            "23": 146109207,
            "24": 2359809,
            "25": 181093027,
            "26": 70628179,
            "27": 49724046,
            "28": 31512397,
            "29": 206977674,
            "30": 178134671,
            "31": 246272638,
            "32": 40799508,
            "33": 191835611,
            "34": 123207465,
            "35": 139964706,
            "36": 58223,
            "t": 37,
            "s": 0
        },
        "e": 65537,
        "d": null,
        "p": null,
        "q": null,
        "dmp1": null,
        "dmq1": null,
        "coeff": null
    }
}